﻿Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Public Class GiangVienDTO
    Private _maGiangVien As String
    Private _hoTen As String
    Private _ngaySinh As Date
    Private _soDienThoai As String
    Private _gioiTinh As String
    Private _cMND As String
    Private _diaChi As String
    Public Property MaGiangVien() As String
        Get
            Return _maGiangVien
        End Get
        Set(ByVal value As String)
            _maGiangVien = value
        End Set
    End Property


    Public Property HoTen() As String
        Get
            Return _hoTen
        End Get
        Set(ByVal value As String)
            _hoTen = value
        End Set
    End Property

    Public Property NgaySinh() As Date
        Get
            Return _ngaySinh
        End Get
        Set(ByVal value As Date)
            _ngaySinh = value
        End Set
    End Property


    Public Property SoDienThoai() As String
        Get
            Return _soDienThoai
        End Get
        Set(ByVal value As String)
            _soDienThoai = value
        End Set
    End Property


    Public Property GioiTinh() As String
        Get
            Return _gioiTinh
        End Get
        Set(ByVal value As String)
            _gioiTinh = value
        End Set
    End Property

    Public Property CMND() As String
        Get
            Return _cMND
        End Get
        Set(ByVal value As String)
            _cMND = value
        End Set
    End Property

    Public Property DiaChi() As String
        Get
            Return _diaChi
        End Get
        Set(ByVal value As String)
            _diaChi = value
        End Set
    End Property
    Public Sub New()
        _ngaySinh = CDate("01/01/1991")
    End Sub
    Public Sub New(ByVal maGiangVien As String, ByVal hoTen As String, ByVal ngaySinh As Date, ByVal soDienThoai As String, ByVal gioiTinh As String, ByVal cMND As String, ByVal diaChi As String)
        Me._maGiangVien = maGiangVien
        Me._hoTen = hoTen
        Me._ngaySinh = ngaySinh
        Me._soDienThoai = soDienThoai
        Me._gioiTinh = gioiTinh
        Me._cMND = cMND
        Me._diaChi = diaChi
    End Sub
End Class
